package com.wang.mall.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wang.mall.bean.SysUserRole;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysUserRoleMapper extends BaseMapper<SysUserRole> {
    int deleteBatch(@Param("roleIds") Long[] roleIds);

    /**
     * 根据用户ID，获取角色ID列表
     */
    List<Long> queryRoleIdList(@Param("userId") Long userId);
}
